package com.dream.network;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description: TODO
 * author: Wang
 * date: 3/9/17 17:01
 * email:life_artist@163.com
 * Copyright©2017 by wang. All rights reserved.
 */
public class TaskTicket implements Parcelable {

    public int taskId;
    public String ticket;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.taskId);
        dest.writeString(this.ticket);
    }

    public TaskTicket() {
    }

    protected TaskTicket(Parcel in) {
        this.taskId = in.readInt();
        this.ticket = in.readString();
    }

    public static final Parcelable.Creator<TaskTicket> CREATOR = new Parcelable.Creator<TaskTicket>() {
        @Override
        public TaskTicket createFromParcel(Parcel source) {
            return new TaskTicket(source);
        }

        @Override
        public TaskTicket[] newArray(int size) {
            return new TaskTicket[size];
        }
    };

    @Override
    public String toString() {
        return "TaskTicket{" + "taskId=" + taskId + ", ticket='" + ticket + '\'' + '}';
    }

}
